<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>消息 - 会员中心 -  <?php echo C('UU_SITE_NAME');?></title>
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/user.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/common.css" rel="stylesheet" type="text/css">
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.min.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.dialog.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/common.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.disappear.tooltip.js"></script>
<!--[if lt IE 9]>
  <script type="text/javascript" src="/<?php echo C('UU_TPL_DIR');?>/public/js/PIE.js"></script>
  <script type="text/javascript">
    (function($){
        $.pie = function(name, v){
            // 如果没有加载 PIE 则直接终止
            if (! PIE) return false;
            // 是否 jQuery 对象或者选择器名称
            var obj = typeof name == 'object' ? name : $(name);
            // 指定运行插件的 IE 浏览器版本
            var version = 9;
            // 未指定则默认使用 ie10 以下全兼容模式
            if (typeof v != 'number' && v < 9) {
                version = v;
            }
            // 可对指定的多个 jQuery 对象进行样式兼容
            if ($.browser.msie && obj.size() > 0) {
                if ($.browser.version*1 <= version*1) {
                    obj.each(function(){
                        PIE.attach(this);
                    });
                }
            }
        }
    })(jQuery);
    if ($.browser.msie) {
      $.pie('.pie_about');
    };
  </script>
<![endif]-->
<script type="text/javascript">
var ajaxURL="<?php echo RU('ajax/view');?>";
</script>
</head>

<body>

<div class="pagetop">
		<div class="main">
          <div class="welcome link_orange" id="J_welcome">欢迎登录 <?php echo C('UU_SITE_NAME');?>！请 <span><a href="Javascript: void(0)" class="J_user_login">登录</a></span>或<span><a href="Javascript: void(0)" class="J_user_reg">注册</a></span></div>
          <div class="menu link_gray6"><a href="<?php echo C('UU_SITE_DOMAIN');?>/" class="home">网站首页</a>
		  
		  <!-- <a href="#" class="ranking">排行榜</a> <a href="#" class="category">问题分类</a> <a href="#" class="mall">积分商城</a> -->
		   
		   </div>
        	<div class="clear"></div>
        </div>
</div>

<div class="header">
  <div class="logo"><a href="/"><img src="http://www.zgxmall.com/data/upload/mall/common/05999185122820637.png"  alt="<?php echo C('UU_SITE_NAME');?>" border="0"/></a></div>
  <div class="so"></div>
  <div class="clear"></div>
</div>

<div class="pagenav">
  <div class="navmain link_white">
  <?php $tag_nav_class = new \Common\Taglib\nav();$nav = $tag_nav_class->run(array('listname'=>'nav','cache'=>'0',)); ?>
			<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><div class="li  <?php if($page_as == $nav['pagealias']): ?>select<?php endif; ?>"><a href="<?php echo ($nav["url"]); ?>" target="<?php echo ($nav["target"]); ?>"><?php echo ($nav["title"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="clear"></div>
  </div>
</div>

<div class="usermain">
  <div class="mleft">
<div class="mu">
	<?php if($user["isadmin"] == '1'): ?><a class="adminbtn" href="<?php echo RU('admin/index');?>" title="后台登录"></a><?php endif; ?>
  <div class="pic"><a href="<?php echo RU('user/set_avatar');?>"><img src="<?php echo ($user["avatar"]); ?>" border="0"></a></div>
			  
			  <a class="uname" href="<?php echo RU('user/set_basic');?>"><?php echo ($user["username"]); ?></a>
			  
			  <div class="exp link_gray3">
					<span class="userLV">LV<?php echo ($user["exp_lv"]); ?></span>经验值：<a href="<?php echo RU('user/set_exp');?>"><?php echo ($user["exp"]); ?>/<?php echo ($lv["exp_max"]); ?></a>
	  </div>
	 
			<div class="progress">
			  <div class="nblock" style="width:<?php echo ($user["percentage"]); ?>"></div>
			</div>
  
	        <div class="gold link_gray3"><?php echo C('UU_GOLD_BYNAME');?>：<a href="<?php echo RU('user/set_gold');?>"><?php echo ($user["gold"]); ?></a></div>			
				
			<div class="lnav">
			<a href="<?php echo RU('user/index');?>" class="mli t0 <?php if($nav_select == 'index'): ?>select<?php endif; ?>">会员中心</a>
			<a href="<?php echo RU('user/question');?>" class="mli t1 <?php if($nav_select == 'question'): ?>select<?php endif; ?>">我的问答</a>
			<a href="<?php echo RU('user/article');?>" class="mli t2 <?php if($nav_select == 'article'): ?>select<?php endif; ?>">我的分享</a>
			<a href="<?php echo RU('user/task');?>" class="mli t3 <?php if($nav_select == 'task'): ?>select<?php endif; ?>">我的任务</a>
			<a href="<?php echo RU('user/msg');?>" class="mli t4 <?php if($nav_select == 'msg'): ?>select<?php endif; ?>">我的消息</a>
			<a href="<?php echo RU('user/set_basic');?>" class="mli t5 <?php if($nav_select == 'set'): ?>select<?php endif; ?>">账号设置</a>
			</div>
			<a class="userlogout J_user_logout" href="Javascript:void(0)">退出登录</a>
		   
</div>
  </div>
  
  <div class="mright">
  
    
	
    <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">消息</div>
  				<a class="snav "           href="<?php echo RU('user/msg');?>">系统消息</a>
			  <a class="snav select"     href="<?php echo RU('user/pms');?>">私信</a>
 
 

			<div class="clear"></div>
	  </div>
	  
	   <div class="user_form_tit">
		<h2>消息详情</h2>
	  </div>
	 
	   
	 
	  <div class="mymsgshow">
		    
		   
		<?php if(is_array($list["list"])): $i = 0; $__LIST__ = $list["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="msguser">
					<img src="<?php echo ($li["user"]["avatar"]); ?>">		
		   </div>
		   <div class="msgtxt <?php if(($li["send_uid"]) == $uid): ?>my<?php endif; ?>">
		     <div class="txt">
				 <div class="uname">
				<?php echo ($li["user"]["username"]); ?>
						  <span class="time"><?php echo ($li["addtime_str"]); ?></span>
				 </div>
			 <?php echo ($li["msg"]); ?>
			 </div>
			 <div class="arrows"></div>
		   </div>
		   <div class="clear"></div><?php endforeach; endif; else: echo "" ;endif; ?>
		   
		   
		   <!--非系统消息允许回复 -->
	 
	    <div class="rform">
		  <div class="rtxt">回消息：</div>
		  <div class="rinput">
		  <textarea name="msg" class="J_msg_show" cols="" rows=""  placeholder="输入消息内容"></textarea>
		  
		  <div class="rbtn">
		  <input type="button" class="btn_green btn_inline btn_border J_send_btn" value="回复"  id="<?php echo ($_GET['id']); ?>">
		  </div>
		  
		  
		  </div>
		  
		  <div class="clear"></div>
		</div>
		
	 
		  
		  
		  
		  
	    </div>
	  </div>
	    
					
		
		
    </div>
	
	 
	
	
  </div>
   <div class="clear"></div>
</div>
<div class="footernav link_gray6">
<a href="<?php echo C('UU_SITE_DOMAIN');?>/">首页</a>
<?php $tag_intro_class = new \Common\Taglib\intro();$li = $tag_intro_class->run(array('listname'=>'li','cache'=>'0',)); ?>
<?php if(is_array($li["list"])): $i = 0; $__LIST__ = $li["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><span>|</span><a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
</div>  
<div class="footertxt link_gray3">
<a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo C('UU_ICP');?></a>
Powered By <a href="http://www.zgxmall.com" target="_blank"><span class="by">中港星企业服务论坛</span><span class="version"><?php echo C('UU_VERSION');?></span></a>
<?php echo C('UU_COPYRIGHT');?>
<br />
联系地址：深圳市罗湖区人民南路国贸大厦17、19楼&nbsp;&nbsp;&nbsp;&nbsp;联系电话：0755-82211688
 
<div class="statistics"><?php echo C('UU_STATISTICS');?></div>
</div>

<script type="text/javascript">
$(document).ready(function()
{	
	//表单增加高度
	$('.J_msg_show').live('click',function() {
			h=$(this).height();
			if (h==100)
			{
			$(this).animate({ height: "20px"}, 500 );	
			}
			else
			{
			$(this).animate({ height: "100px"}, 500 );
			}
	});	 
//回复操作

$(".J_send_btn").click( function ()
{
	btn=$(this);
	id=btn.attr('id');
	msg=$("textarea[name='msg']").val();
	btn.attr("disabled","disabled").addClass('btn_disabled');
	$.getJSON(ajaxURL,{act: "ajax_pms_reply",id:id,msg:msg}, function(json){	
					if (json.status==0){
						disapperTooltip("remind", json.content);
						btn.removeAttr("disabled").removeClass('btn_disabled');
					}else if (json.status==1){
						disapperTooltip("success",json.content);
						setTimeout(function () { 
							window.location.reload();
						}, 1800);
					}else{
						disapperTooltip("remind","未知错误");
						btn.removeAttr("disabled").removeClass('btn_disabled');
					}
	});

});		
		 
		
});
</script>
</body>
</html>